package com.study.common.response;

/**
 * @author chenxl
 * API 响应实体对象
 */
public class ResponseEntity {
    public ResponseEntity(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应说明
     */
    private String msg;
    /**
     * 响应数据 可能是一个对象 也可能是一个集合
     */
    private Object data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
